<?php

require_once dirname(__FILE__).'/../bootstrap/unit.php';

$test = new lime_test();

$configuration = ProjectConfiguration::getApplicationConfiguration('Redsea20', 'test', true);

$databaseManager = new sfDatabaseManager($configuration);
sfContext::createInstance($configuration);

$speciesTbl = SpeciesTable::getInstance();

echo "starting..". date("G:i:s") ."\n";

//echo $speciesTbl->lcs_len('Abudefduf sexfasciatus', 'abudefdef') . "\n";

$result = $speciesTbl->findSimilars("acanthurus");

print_r($result);

$test->ok(count($result) > 0, 'passed');

echo "finish..". date("G:i:s") . "\n";
?>
